s='hello,Python'
print(s[1:5:1])
print(s[::2])
print(s[::-1])
print(s[-6::1])
print(s[:5:1])
print(s[-8::-1])
print(s[:-7:-1])


